class Category < ActiveRecord::Base
  has_and_belongs_to_many :webcomics
  
  def self.getCategoryList() 
    @rows = find(:all, :order => "name ASC");
    #@rows.map {|item| item.name};
  end
  
  def <=>(cat) 
    return self.name <=> cat.name
  end
end
